package com.pavco.caribbeanvisit.shared.models;

import java.io.Serializable;
import java.util.ArrayList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, 
    detachable = "false")
public class Ad implements Serializable {
  @SuppressWarnings("unused")
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;
  
  @Persistent
  private String title;
  
  @Persistent
  private String html;
  
  @Persistent
  private float rating;
  
  @Persistent
  private ArrayList<String> metaTags;
  
  @Persistent
  private int impressions;
  
  @Persistent
  private int clicks;
}